<?php
/**
 * Created by PhpStorm.
 * User: sl
 * Date: 17-6-23
 * Time: 下午8:48
 */

namespace ActionsHttp;


use Data\Tree_question_DAO;

class QuestionList extends BaseActionHttp
{
    public function doAction() {
        parent::doAction();
        $customer_id_random_str = $this->data[CUSTOMER_ID];
        $customer_id = substr($customer_id_random_str,10);
        // 检测登陆是否过期
        if (!($this->checkSession($customer_id))) {
            return;
        }


        $question_list = Tree_question_DAO::getListByCustomer_id($customer_id);

        // 返回数据
        $this->setValue(QUESTION_LIST,$question_list);
        $this->ResponseDataToCurrentClient();
    }
}